﻿<%@ Page Language="C#" MasterPageFile="~/Global/User.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="TVC_WEB.Global.Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .productItem
        {
            width: 169px;
            float: left;
            padding: 5px;
            margin: 5px;
            text-align: center;
        }
        .groupSeparator
        {
            border-top: 1px dotted Gray;
            height: 1px;
            clear: both;
        }
        .itemSeparator
        {
            height: 193px;
            width: 1px;
            border-left: 1px dotted Gray;
            float: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <img alt="Featured Products" src="Images/featured-products.gif">
    </div>
    <div class="p" id="product_list">
        <asp:ListView ID="lvPro" runat="server" GroupItemCount="3">
            <LayoutTemplate>
                <div style="width: 100%;">
                    <asp:PlaceHolder runat="server" ID="groupPlaceHolder" />
                </div>
            </LayoutTemplate>
            <EmptyDataTemplate>
                <div style="width: 100%;">
                    Sorry, no results were found, please widen your search
                </div>
            </EmptyDataTemplate>
            <GroupTemplate>
                <div style="clear: both;">
                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
                </div>
            </GroupTemplate>
            <ItemTemplate>
                <div class="productItem">
                    <div align="left">
                        <p class="first" style="text-align: center;">
                            Mã:
                            <%# Eval("Code").ToString()%>
                        </p>
                        <div class="primw">
                            <div class="prim">
                                <a href="/Global/prodetail.aspx?id=<%# Eval("ID").ToString()%>">
                                    <img src="<%#GetImage(Eval("Image").ToString()) %>" width="150" height="99" hspace="0"
                                        vspace="0" alt="<%# Eval("NameVN").ToString()%>"></a></div>
                        </div>
                        <p>
                        </p>
                        <p class="last">
                            <span class="prti"><a href="/Global/prodetail.aspx?id=<%# Eval("ID").ToString()%>"><b>
                                <%# Eval("NameVN").ToString()%></b></a></span><span class="gap"><font class="selling_price"><b><%# GetPrice(Eval("NewPrice").ToString())%></b></font></span></p>
                    </div>
                </div>
            </ItemTemplate>
            <ItemSeparatorTemplate>
                <div class="itemSeparator">
                </div>
            </ItemSeparatorTemplate>
            <GroupSeparatorTemplate>
                <div class="groupSeparator">
                </div>
            </GroupSeparatorTemplate>
            <EmptyDataTemplate>
            </EmptyDataTemplate>
        </asp:ListView>
    </div>
</asp:Content>
